package 状态模式.demo01;

/**
 * @author wangxi03 created on 2021/4/28 7:52 下午
 * @version v1.0
 */
public class ConcreteStateB extends State {
    @Override
    public void handle(Context context) {
        System.out.println("当前状态是 B.");
        // 状态继续切换 扭转
        context.setState(new ConcreteStateA());
    }
}
